package net.wexoo.onlinedivelog.reusable;

import java.util.ResourceBundle;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author wexoo
 */
public class PropertyLoader {

   private static Logger log = LoggerFactory.getLogger(PropertyLoader.class);
   private static ResourceBundle properties;

   public static ResourceBundle getProperties() {
      if (properties == null) {
         try {
            properties = ResourceBundle.getBundle("onlineDiveLog");
         } catch (Exception e) {
            log.error(e.toString());
         }
      }
      return properties;
   }
}